<template>
  <ant-modal
    modalWidth="800"
    modalHeight="550"
    :visible="open"
    :modal-title="formTitle"
    :adjust-size="true"
    @cancel="cancel"
  >
    <a-form-model
      ref="form"
      :model="form"
      :rules="rules"
      slot="content"
      layout="vertical"
    >
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="创建者" prop="userId">
            <a-input v-model="form.userId" placeholder="请输入创建者" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="创建部门" prop="deptId">
            <a-input v-model="form.deptId" placeholder="请输入创建部门" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="创建名称" prop="userName">
            <a-input v-model="form.userName" placeholder="请输入创建名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="部门名称" prop="deptName">
            <a-input v-model="form.deptName" placeholder="请输入部门名称" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="公司ID" prop="companyId">
            <a-input v-model="form.companyId" placeholder="请输入公司ID" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="考核ID" prop="assessId">
            <a-input v-model="form.assessId" placeholder="请输入考核ID" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="部门ID" prop="assessDept">
            <a-input v-model="form.assessDept" placeholder="请输入部门ID" />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="考核标准ID" prop="assessDetailsId">
            <a-input
              v-model="form.assessDetailsId"
              placeholder="请输入考核标准ID"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="考核得分" prop="assessScore">
            <a-input-number
              v-model="form.assessScore"
              :min="0"
              style="width: 100%"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="文件名称" prop="fileName">
            <a-textarea
              v-model="form.fileName"
              placeholder="请输入文件名称"
              :rows="4"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="文件路径" prop="fileUrl">
            <a-textarea
              v-model="form.fileUrl"
              placeholder="请输入文件路径"
              :rows="4"
            />
          </a-form-model-item>
        </a-col>
      </a-row>
      <a-row :gutter="32">
        <a-col :span="12">
          <a-form-model-item label="考核项详情ID" prop="assessDeptDetailsId">
            <a-input
              v-model="form.assessDeptDetailsId"
              placeholder="请输入考核项详情ID"
            />
          </a-form-model-item>
        </a-col>
        <a-col :span="12">
          <a-form-model-item label="排序" prop="sort">
            <a-input-number v-model="form.sort" :min="0" style="width: 100%" />
          </a-form-model-item>
        </a-col>
      </a-row>
    </a-form-model>
    <template slot="footer">
      <a-button @click="cancel"> 取消 </a-button>
      <a-button type="primary" @click="submitForm"> 保存 </a-button>
    </template>
  </ant-modal>
</template>
<script>
import BizAssessToDeptDetailsFileAddForm from "./BizAssessToDeptDetailsFileForm";
export default {
  ...BizAssessToDeptDetailsFileAddForm,
};
</script>
